﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.Web.UI.Controls;
using ZX.SYS.Library;
using ZX.DBModule;
using ZX.Common;
using ZX.BLL.Extend;
using ZX.BLL;

namespace ZX.WebApp.EditWidows.OrganizationalManager
{
    public partial class AddDutyType : EditUIPage
    {
        BDatPhraseDetail bll = new BDatPhraseDetail();
        private string strListInfo = "[]";
        private string strEntity = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            strEntity = this.GetStringFromQueryString("entity", "E_Menu");
            string strId = this.GetStringFromQueryString("id", ""); 
            if (strId != "") 
            {
                IList<DatPhraseDetail> ListInfo = bll.GetDatPhraseDetailById(new Guid(strId));
                if (ListInfo != null && ListInfo.Count > 0)
                {
                    this.PhraseText.Value = ListInfo[0].PhraseText;
                    this.Seq.Value = ListInfo[0].Seq.ToString();
                }
            }
        }
        public string TypeId
        { get { return this.GetStringFromQueryString("id", ""); } }
        public string ListTypeInfo
        { get { return strListInfo; } }
        public string EntityNames
        { get { return this.strEntity; } }
    }
}